package com.jintoufs.weixin;

import me.chanjar.weixin.common.bean.menu.WxMenu;
import me.chanjar.weixin.common.bean.menu.WxMenuButton;
import me.chanjar.weixin.mp.api.WxMpService;

public class MenuConfig {
    WxMpService wxMpService;

    public MenuConfig(WxMpService wxMpService) {
        this.wxMpService = wxMpService;
    }

    public WxMenu getMenu() {
        WxMenu menu = new WxMenu();
        WxMenuButton button1 = new WxMenuButton();
        button1.setName("小程序");
        button1.setAppId("wxc4e73ef4bb15332f");
        button1.setType("miniprogram");
        button1.setPagePath("pages/task/index");
        button1.setUrl("com.jintoufs.service.weixin.qq.com/download");
        menu.getButtons().add(button1);
        return menu;
    }
}
